home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / HTAssoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  1.1 KB  |  45 lines

  1. /*                       ASSOCIATION LIST FOR STORING NAME-VALUE PAIRS
  2.                                              
  3.    Lookups from assosiation list are not case-sensitive.
  4.    
  5.  */
  6.  
  7. #ifndef HTASSOC_H
  8. #define HTASSOC_H
  9.  
  10. #ifndef HTUTILS_H
  11. #include "HTUtils.h"
  12. #endif /* HTUTILS_H */
  13. #include "HTList.h"
  14.  
  15.  
  16. #ifdef SHORT_NAMES
  17. #define HTAL_new        HTAssocList_new
  18. #define HTAL_del        HTAssocList_delete
  19. #define HTAL_add        HTAssocList_add
  20. #define HTAL_lup        HTAssocList_lookup
  21. #endif /*SHORT_NAMES*/
  22.  
  23. typedef HTList HTAssocList;
  24.  
  25. typedef struct {
  26.     char * name;
  27.     char * value;
  28. } HTAssoc;
  29.  
  30.  
  31. PUBLIC HTAssocList *HTAssocList_new NOPARAMS;
  32. PUBLIC void HTAssocList_delete PARAMS((HTAssocList * alist));
  33.  
  34. PUBLIC void HTAssocList_add PARAMS((HTAssocList *       alist,
  35.                                     CONST char *        name,
  36.                                     CONST char *        value));
  37.  
  38. PUBLIC char *HTAssocList_lookup PARAMS((HTAssocList *   alist,
  39.                                         CONST char *    name));
  40.  
  41. #endif /* not HTASSOC_H */
  42. /*
  43.  
  44.    End of file HTAssoc.h.  */
  45.